// 导入vue的插件, 在main.js中被使用
// 注册全局组件
import PageTools from '@/components/PageTools/index.vue'
import UploadImg from '@/components/UploadImg'
import ImageHolder from '@/components/ImageHolder'
import Lang from '@/lang'
export default {
  install(Vue) {
    console.log('插件正在加载中.....')
    Vue.component('PageTools', PageTools)
    Vue.component('UploadImg', UploadImg)
    Vue.component('ImageHolder', ImageHolder)
    // 进行组件的全局注册
    Vue.component('Lang', Lang)
    Vue.prototype.num = 3000
    Vue.prototype.hello = () => {
      alert('hello')
    }
  }
}